package day04;

public class DemoThreadLocal {
    public static void main(String[] args) {
        ThreadLocal<String> objectThreadLocal = new ThreadLocal<>();
        objectThreadLocal.set("hello");
        String s = objectThreadLocal.get();
        System.out.println("s:"+s);
        new Thread(()->{
            System.out.println(objectThreadLocal.get());
        }).start();

    }
}
